
package com.fis.mca.persistence;

import java.io.Serializable;
import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;



/**
 * <p>Java class for mcaMessageContent complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="mcaMessageContent">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="lastModify" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         &lt;element name="mcaLanguage" type="{http://messagecontent.mca.fis.com/}mcaLanguage" minOccurs="0"/>
 *         &lt;element name="mcaMessage" type="{http://messagecontent.mca.fis.com/}mcaMessage" minOccurs="0"/>
 *         &lt;element name="message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="msgContentId" type="{http://www.w3.org/2001/XMLSchema}long"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "mcaMessageContent", propOrder = {
    "lastModify",
    "mcaLanguage",
    "mcaMessage",
    "message",
    "msgContentId"
})
public class McaMessageContent implements Serializable {

    @XmlSchemaType(name = "dateTime")
    protected Date lastModify;
    protected McaLanguage mcaLanguage;
    protected McaMessage mcaMessage;
    protected String message;
    protected long msgContentId;

    /**
     * Gets the value of the lastModify property.
     * 
     * @return
     *     possible object is
     *     {@link Date }
     *     
     */
    public Date getLastModify() {
        return lastModify;
    }

    /**
     * Sets the value of the lastModify property.
     * 
     * @param value
     *     allowed object is
     *     {@link Date }
     *     
     */
    public void setLastModify(Date value) {
        this.lastModify = value;
    }

    /**
     * Gets the value of the mcaLanguage property.
     * 
     * @return
     *     possible object is
     *     {@link McaLanguage }
     *     
     */
    public McaLanguage getMcaLanguage() {
        return mcaLanguage;
    }

    /**
     * Sets the value of the mcaLanguage property.
     * 
     * @param value
     *     allowed object is
     *     {@link McaLanguage }
     *     
     */
    public void setMcaLanguage(McaLanguage value) {
        this.mcaLanguage = value;
    }

    /**
     * Gets the value of the mcaMessage property.
     * 
     * @return
     *     possible object is
     *     {@link McaMessage }
     *     
     */
    public McaMessage getMcaMessage() {
        return mcaMessage;
    }

    /**
     * Sets the value of the mcaMessage property.
     * 
     * @param value
     *     allowed object is
     *     {@link McaMessage }
     *     
     */
    public void setMcaMessage(McaMessage value) {
        this.mcaMessage = value;
    }

    /**
     * Gets the value of the message property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getMessage() {
        return message.replace("\\n", "\n");
    }

    /**
     * Sets the value of the message property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setMessage(String value) {
        this.message = (value == null) ? value : value.trim();
    }

    /**
     * Gets the value of the msgContentId property.
     * 
     */
    public long getMsgContentId() {
        return msgContentId;
    }

    /**
     * Sets the value of the msgContentId property.
     * 
     */
    public void setMsgContentId(long value) {
        this.msgContentId = value;
    }
    
 
}
